package personal.xjl._23java2studentdemo.spring;

import lombok.Data;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Component;

@Data
@Component("CowCar")
public class CowCar {
    @Autowired
    @Qualifier("niumowang")
    Cow cow;
    @Value("3")
    int wheelCount;
}
